package com.service.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.service.dao.model.SysRoleMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {

    int updateByPrimaryKeySelective(SysRoleMenu record);

    List<Integer> getMenusIdByRid(@Param("rid") Integer rId);

    int insertBatch(@Param("mIdList") List<Integer> mIdList, @Param("roleId") Integer roleId);

}